class MockService {
    bannerList = [
        {id:0,image:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c86d9119c772e64842791c06074c9535.jpg?thumb=1&w=720&h=360"},
        {id:1,image:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c7581d7254c525299a4073a10d80a796.jpg?thumb=1&w=720&h=360"},
        {id:2,image:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/7cd97fa20373a20cf9305f97ff38847f.jpg?thumb=1&w=720&h=360"},
        {id:3,image:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c6ff526b9d75342f0995778b56060b85.jpg?thumb=1&w=720&h=360"}
    ]

    productList = [
        {
            id:0,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b849e46756af7c95002aa3906ed77c13.jpg?thumb=1&w=344&h=280",
            name: "Xiaomi 11 Pro",
            brief: "1/1.12GN2|晓龙888",
            price: "3399",
            youhui:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e2dbd2fa17a4b68999e7e9a021fb3831.png?w=167&h=167"
        },
        {
            id:1,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/94b22bbff9fa84440a0aed48f9f63154.jpg?thumb=1&w=344&h=280",
            name: "Xiaomi MIX FOLD",
            brief: "折叠大屏|自研芯片",
            price: "6999"
        },
        {
            id:2,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/6dca45286d9d76d1f864a8ecf77f5600.jpg?thumb=1&w=344&h=280",
            name: "Note 9 5G",
            brief: "天玑 800U处理器",
            price: "1149"
        },
        {
            id:3,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/455c8ad8d204e4ffd67865a98ae40c7b.jpg?thumb=1&w=344&h=280",
            name: "Xiaomi 10S",
            brief: "晓龙870|对称式双扬立体声",
            price: "2699",
            youhui:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8be706c15780e4c6b61da51fb48cef6e.png?w=167&h=167"
        },
        {
            id:4,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/b32136fc8b4e81e8bca912d23c384c9d.jpg?thumb=1&w=344&h=280",
            name: "Note 9 pro 5G",
            brief: "一亿像素夜景相机",
            price: "1399",
            youhui:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8be706c15780e4c6b61da51fb48cef6e.png?w=167&h=167"
        },
        {
            id:5,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/fc320b33889899dfb6f2c1befc7d2ca2.jpg?thumb=1&w=344&h=280",
            name: "Xiaomi 11",
            brief: "晓龙888|2K四曲面屏",
            price: "2999"
        },
        {
            id:6,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/7fb74299ef995a4ae4f4a687c9873f78.jpg?thumb=1&w=344&h=280",
            name: "黑鲨4",
            brief: "磁动力升降肩键",
            price: "2499",
            youhui:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8be706c15780e4c6b61da51fb48cef6e.png?w=167&h=167"
        },
        {
            id:7,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/66976d8caaea76a1a14db103e2793897.jpg?thumb=1&w=344&h=280",
            name: "Redmi K40 Pro",
            brief: "晓龙888|E4 旗舰直屏",
            price: "2499",
            youhui:"https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/e2dbd2fa17a4b68999e7e9a021fb3831.png?w=167&h=167"
        }
    ]

    computerList = [
        {
            id:0,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8dff54ca1a31d2441e38c973fbc9bf9b.jpg?thumb=1&w=344&h=280",
            name: "RedmiBook Pro 14",
            brief: "2.5K超视网膜全面屏",
            price: "4999"
        },
        {
            id:1,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/8dff54ca1a31d2441e38c973fbc9bf9b.jpg?thumb=1&w=344&h=280",
            name: "RedmiBook Pro 15",
            brief: "3.2K超清视网膜全面屏",
            price: "5299"
        },
        {
            id:2,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/f07994da29487e4d3732888a152afbbd.jpg?thumb=1&w=344&h=280",
            name: "小米笔记本Pro 15",
            brief: "大师屏 轻薄大作",
            price: "6499"
        },
        {
            id:3,
            image: "https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/09adda25ee11a2b6dd29164fa3a8fd6c.jpg?thumb=1&w=344&h=280",
            name: "小米笔记本Pro 14",
            brief: "大师屏 轻薄大作",
            price: "5499"
        }
    ]

    typesList = [
        {id:0,image:"https://i8.mifile.cn/v1/a1/46c44f3e-479d-a999-dd2d-98fb39b51e17.webp?w=537&h=720&bg=C0A491"},
        {id:1,image:"https://i8.mifile.cn/v1/a1/b79cb907-3ae4-2a35-6756-b243b386a95a.webp?w=537&h=720&bg=E8CFCB"},
        {id:2,image:"https://i8.mifile.cn/v1/a1/b883172b-5aa3-7855-678f-c615109ee0a7.webp?w=537&h=720&bg=878F9B"},
        {id:3,image:"https://i8.mifile.cn/v1/a1/8cfcd654-4af5-9ae6-c6cc-1ba9d28be8e8.webp?w=537&h=720&bg=9BB5C4"},
        {id:4,image:"https://i8.mifile.cn/v1/a1/52866372-7fe5-76c2-29a0-9ae32d07b8ff.webp?w=537&h=720&bg=D9D8C3"},
        {id:5,image:"https://i8.mifile.cn/v1/a1/ad91499a-59ab-adc3-8fd5-98aefc1c43b4.webp?w=537&h=720&bg=B5C5BE"}
    ]

    getBannerListApi(){
        return new Promise(resolve => {
            let _result = this.bannerList
            resolve({
                code: 200,
                data: {rows: _result, total: this.bannerList.length}
            })
        })
    }

    getProductListApi(){
        return new Promise(resolve => {
            let _result = this.productList
            resolve({
                code: 200,
                data: {rows: _result, total: this.productList.length}
            })
        })
    }

    getComputerListApi(){
        return new Promise(resolve => {
            let _result = this.computerList
            resolve({
                code:200,
                data: {rows: _result, total: this.computerList.length}
            })
        })
    }

    getTypesListApi(){
        return new Promise(resolve => {
            let _result = this.typesList
            resolve({
                code:200,
                data: {rows: _result, total: this.typesList.length}
            })
        })
    }
}

export default new MockService